package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;

public class Book implements Serializable {

    @Serial
    private static final long serialVersionUID = -4430576459040836057L;
    private int id;
    //书名
    private String bookName;
    //作者
    private String author;
    //出版日期
    private String publicationdate;
    //价格
    private String price;
    //类别Id
    private String categoryId;
    private Category category;

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublicationdate() {
        return publicationdate;
    }

    public void setPublicationdate() {
        this.publicationdate = publicationdate;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", publicationdate='" + publicationdate + '\'' +
                ", price='" + price + '\'' +
                ", categoryId='" + categoryId + '\'' +
                '}';
    }
}
